<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>杜人龙 - 简历</title>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>
	<body>
		<!-- 浮层 -->
		<div id="supernatant">
			<div>移入此区域显示导航栏</div>
			<div></div>
			<div></div>
		</div>
		<!-- 浮层end -->
		
		<!-- 导航  -->
		<header>
			<p>杜人龙<small>(前端简介)</small></p>
			<ul>
				<li><a href="javascript:;">首页</a></li>
				<li><a href="javascript:;">简介</a></li>
				<li><a href="javascript:;">技能</a></li>
				<li><a href="javascript:;">经历</a></li>
			</ul>
		</header>
		<!-- 导航 end -->
		
		<!-- 首页 -->
		<section id="home">
			<div></div>
		</section>
		<!-- 首页 end -->
		
		<!-- 简介 -->
		<section id="intro">
			
		</section>
		<!-- 简介 end -->
		
		<!-- 技能  -->
		<section id="skill">
		</section>
		<!-- 技能end -->
		
		<!-- 经历 -->
		<section id="undergo">
		</section>
		<!-- 经历end -->
		
		<script src="js/jquery-3.1.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$('body').mousemove(function(ev){
					var y = ev.clientY;
					if(y <= 50){
						$("header").css('top','0px');
						$("#supernatant").animate({opacity:'0'},800,function() {
						  	$("#supernatant").hide();	
						})
					}else{
						$("header").css('top','-50px')
					}
				});	
				$('header > ul > li > a').click(function(){
					var h = $(this).parent().index() * window.innerHeight;
					$('html,body').animate({scrollTop: h + "px"}, 300);
				});
			});
		</script>
		
	</body>
</html>
